PrefaceThis document is simply a logical algorithm, and how to compute network bits, host bits, and broadcast addresses in the case of known IP addresses and subnet masks. All steps are far from the most primitive binary way, the direct hit principle, please read carefully.1. Logic algorithmLogic and operations and logic or operations are used when computing network bits, host addresses, broadcast addresses, so it is necessary to understand their algo
The subnet mask (subnet mask) is also called the netmask, address mask, and subnet mask, which is used to indicate which bits of an IP address identify the host's
One day, using Centos7, when discovering the network configuration, the subnet mask needs to be converted manually, because the CENTOS7 network is configured as follows:NMCLI Connection Enp4s0 Modify Ipv4.methord manual ipv4.address "192.168.1.120/24" Ipv4.gateway "192.168.1.1" Ipv4.dns "2 23.5.5.5 "A configuration item with no subnet
Transferred from:
Http://bbs.51cto.com/thread-68584-1-1.html
Subnet Mask and subnet divisionDirectory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host ad
Subnet Mask and subnet division
Directory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host address using the subnet
subnet mask and subnet partitioningDirectory:
I. Summary
The concept and function of subnet mask
Third, why do I need to use the subnet mask
Four, how to use the
: 000001010011100101110111 But it represents the network itself 000; 111 of the broadcast address is reserved, so you have to subtract 2, understand? NBSP;5) How to calculate the total number of hosts, the number of subnets in the subnet? Total number of hosts = number of subnets x subnets number of hosts and then an example to illustrate, such as the subnet mask
Directory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host address using the subnet maskV. Classification of subnet masksVi. subnet addressing technology7
I. Concepts and functions of two subnet masks 3. Why do I need to use a subnet mask 4. How do I use a subnet mask to obtain a network/Host address 5? What is the classification of a subnet mas
, which is scaled down step by step and located on a house number. If we create numbers for the province, city, and street, and combine them with the street number, we can get a long string of numbers to uniquely identify a home address. Similarly, the IP address has a 32-bit length, so long as an encoding, why can't we retrieve the first few digits as a "region" address, which of the remaining digits is used as the "relative" address in this region?
Subnet mask (Subnet masks):
The subnet mask is used to identify which part of the IP address is a network address. Which part is the host address, there are 1 and 0 components, long 32 bits, all 1 of bits represent the network number. Not all networks require subnets, so th
The subnet mask cannot exist alone, it must be used in conjunction with an IP address. The subnet mask has only one function, which is to divide an IP address into two parts: network address and host address.The subnet mask settin
this point the network number bit becomes 25 bits, and the host label becomes 7 bits. Similarly borrowing 2 host bits can divide a class C network into 4 subnets ... How did the computer know if the network was divided into subnets? This can be seen from the subnet mask. The subnet
As for subnet division, the subnet mask is odd. 1.0.1.0 -- 1.0.3.255 Fujian Telecom converts the subnet mask to an IP segment 1.0.1.0/24--1.0.2.0/23, if two IP addresses are replaced by binary IP addresses in a general way, or the budget is 0001.00000000.00000001.00, the
into several subnets, each subnet contains 700 hosts:1) 700 = 10101111002) the binary is ten digits, n = 103) set all the host addresses of the subnet mask 255.255.0.0 for the Class B address to 1, and obtain 255.255.255.255.255.Then, move the last 10 positions 0 from the back to the back, that is, 11111111.1111111100.00000000.That is, 255.255.252.0. This is the
computer number. If the IP address is represented by a binary, the Class A IP address consists of a 1-byte network address and a 3-byte host address, and the highest bit of the network address must be "0". A class of IP address network identification length of 8 bits, host identification length of 24 bits, a class of network addresses a small number of 126 networks, each network can accommodate the number of hosts up to more than 16 million units. Cl
255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.255.1. Based on the subnet mask, you can know the number of network numbers and the number of host numbers!Convert bytes into binary: 11111111 11111111 11111111 11100000There are 27 network numbers and 5 Host numb
host address. The subnet mask must be set according to certain rules. Same as the IP address, the subnet mask length is also 32 bits, the network bits on the left are represented by the binary number "1", and the host bits on the right are represented by the binary number "0. Www.2cto.com "192.168.1.1" and the
subnets will need to occupy 1 bits of the original host identity bit. At this point the network number bit becomes 22 bits and the host label becomes 7 bits. Similarly borrowing 2 host bits can divide a class C network into 4 subnets ... How did the computer know if the network was divided into subnets?
This can be seen from the subnet
part is the host address, there are 1 and 0 components, long 32 bits, all 1 of bits represent the network number. Not all networks require subnets, so there are 1 concepts: The default subnet mask (defaulted subnet mask). The default subnet
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.